package com.lzxzjy.mapper;


import com.lzxzjy.pojo.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageMapper {

     Integer insertMessage(Message message);

     Integer deleteByMessageIds(@Param("messageIds") int[] messageIds);

     Integer deleteByMessageId(int messageId);

     Integer updateByMessageId(Message message);

     List<Message> selectMessageByPageAndTerms(@Param("message") Message message, @Param("messageBegin") int messageBegin, @Param("messageSize") int messageSize);

     Integer selectMessageTotalCountByTerms(Message message);
}
